import request from "@/utils/request"

export function login(username,password){
    return request({
        method:"post",
        url:"/user/login",
        data:{
            username,
            password,
        }
    })
}

export function info(token){
    return request({
        method:"get",
        url:`/user/info/${token}`,
    })
}

//退出登陆的api
export function logout(token){
    return request({
        method:"post",
        url:"/user/logout",
        data:{
            token,
        }
    })
}